/*
 *  Julian.h
 *  Calendar
 *
 *  Created by Fredrik Gustafsson on 10/12/10.
 *  Copyright 2010 Kungliga Tekniska Högskolan. All rights reserved.
 *
 */

#ifndef LAB2_Julian_H_
#define LAB2_Julian_H_

#include "gregorian.h"

namespace lab2 {
	class Julian : public Gregorian {
	public:
		Julian();
		Julian(int,int,int);
		Julian(const Date*);
		Julian(const Date&);
		Julian(const Gregorian*);
		Julian(const Gregorian&);
		const int mod_julian_day() const;
	protected:
		const int get_century_offset(int year) const;
		bool leap_year(int year) const;
		virtual void set_date_from_base(int base);
	};
}

#endif LAB2_Julian_H_